gtk4.git
5 years agostacksidebar: Add missing .navigation-sidebar to the inner list
nana-4 [Sun, 22 Nov 2020 04:36:54 +0000 (13:36 +0900)]
stacksidebar: Add missing .navigation-sidebar to the inner list

Also don't set :show-separators, which is not applied in other sidebars.

See https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

5 years agoMerge branch 'scalebutton' into 'master'
Timm Bäder [Mon, 23 Nov 2020 07:38:17 +0000 (07:38 +0000)]
Merge branch 'scalebutton' into 'master'

properly set ScaleButton's parent_class

Closes #3381

See merge request GNOME/gtk!2877

5 years agoproperly set ScaleButton's parent_class
Bilal Elmoussaoui [Mon, 23 Nov 2020 01:47:03 +0000 (02:47 +0100)]
properly set ScaleButton's parent_class

GtkScaleButton doesn't subclass GtkButton anymore
Fixes #3381

5 years agoMerge branch 'nullables-1' into 'master'
Emmanuele Bassi [Sat, 21 Nov 2020 16:11:34 +0000 (16:11 +0000)]
Merge branch 'nullables-1' into 'master'

Fix some nullable return annotations

See merge request GNOME/gtk!2873

5 years agoFix some nullable return annotations
Sophie Herold [Sat, 21 Nov 2020 15:33:40 +0000 (16:33 +0100)]
Fix some nullable return annotations

5 years agoUpdate POTFILES.skip
Piotr Drąg [Sat, 21 Nov 2020 13:39:17 +0000 (14:39 +0100)]
Update POTFILES.skip

5 years agoMerge branch 'wip/jimmac/clipped-menu-shadows' into 'master'
Jakub Steiner [Fri, 20 Nov 2020 12:37:49 +0000 (12:37 +0000)]
Merge branch 'wip/jimmac/clipped-menu-shadows' into 'master'

Adwaita: avoid clipping menu shadows

Closes #1987

See merge request GNOME/gtk!2872

5 years agoRevert "Adwaita: unified sidebar styles"
Jakub Steiner [Fri, 20 Nov 2020 12:23:29 +0000 (13:23 +0100)]
Revert "Adwaita: unified sidebar styles"

Doing the same mistake twice :( Even margin is eating from the container,
not expanding outside of it.

This reverts commit 6be575992f8e5b30dc8b8f2794e6a02941dc0031.

5 years agoMerge branch 'wip/jimmac/sidebar-backdrop' into 'master'
Jakub Steiner [Fri, 20 Nov 2020 12:08:59 +0000 (12:08 +0000)]
Merge branch 'wip/jimmac/sidebar-backdrop' into 'master'

Adwaita: don't backdrop labels

Closes #3377

See merge request GNOME/gtk!2868

5 years agoAdwaita: avoid clipping menu shadows
Jakub Steiner [Fri, 20 Nov 2020 12:04:04 +0000 (13:04 +0100)]
Adwaita: avoid clipping menu shadows

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/1987

5 years agoMerge branch 'wip/jimmac/unified-sidebar-styles' into 'master'
Jakub Steiner [Fri, 20 Nov 2020 11:40:30 +0000 (11:40 +0000)]
Merge branch 'wip/jimmac/unified-sidebar-styles' into 'master'

Adwaita: unified sidebar styles

Closes #3382

See merge request GNOME/gtk!2871

5 years agoAdwaita: unified sidebar styles
Jakub Steiner [Fri, 20 Nov 2020 10:26:13 +0000 (11:26 +0100)]
Adwaita: unified sidebar styles

- stacksidebar focus, separation and color as everything else
- eliminate placessidebar double padding

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3382

5 years agoAdwaita: don't backdrop labels
Jakub Steiner [Thu, 19 Nov 2020 16:03:43 +0000 (17:03 +0100)]
Adwaita: don't backdrop labels

- instead of overriding :backdrop for sidebars, continue pursuing
  not to backdrop anything but headerbar items and buttons.

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3377

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Fri, 20 Nov 2020 02:02:10 +0000 (02:02 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2870

5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Fri, 20 Nov 2020 01:46:03 +0000 (01:46 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gtk/main: Do not unset active state on button release w/o implicit grab

See merge request GNOME/gtk!2869

5 years agogtk-demo: Make a more interesting constraints demo
Matthias Clasen [Thu, 19 Nov 2020 12:30:30 +0000 (07:30 -0500)]
gtk-demo: Make a more interesting constraints demo

Show various ways to influence spacing. This is more or
less modeled on the way Androids constraint layout lets
you set up 'chains'.

5 years agogtk/main: Do not unset active state on button release w/o implicit grab
Carlos Garnacho [Thu, 19 Nov 2020 19:12:58 +0000 (20:12 +0100)]
gtk/main: Do not unset active state on button release w/o implicit grab

If an active grab gets undone on button press (e.g. closing a menu), we
will receive a button release on the new target even though it didn't handle
the button press, and disable ::active state.

This causes warnings when handling the button release, as it tries to undo
::active state that is not really there.

In order to fix this, check that the pointer focus actually had an implicit
grab at the time of receiving the button release, before trying to unset
the ::active state.

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Thu, 19 Nov 2020 16:37:58 +0000 (16:37 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!2867

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Thu, 19 Nov 2020 16:05:47 +0000 (16:05 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

GTK4: various fixes

See merge request GNOME/gtk!2864

5 years agoMerge branch 'wip/jimmac/industrial-style-menuitems' into 'master'
Jakub Steiner [Thu, 19 Nov 2020 15:52:25 +0000 (15:52 +0000)]
Merge branch 'wip/jimmac/industrial-style-menuitems' into 'master'

Adwaita: revert edge-to-edge menuitems

Closes #3366

See merge request GNOME/gtk!2866

5 years agoa11y: Hide children of GtkFishBowl
Emmanuele Bassi [Thu, 19 Nov 2020 14:47:16 +0000 (14:47 +0000)]
a11y: Hide children of GtkFishBowl

The fishbowl widget is purely presentational, and its children should
not be visible in the accessibility tree.

5 years agodemo: Make GtkFishBowl a presentation widget
Emmanuele Bassi [Thu, 19 Nov 2020 12:16:26 +0000 (12:16 +0000)]
demo: Make GtkFishBowl a presentation widget

It has no accessible content, even if it displays widgets.

5 years agoa11y: Skip atspi.Cache signals for hidden elements
Emmanuele Bassi [Thu, 19 Nov 2020 14:46:01 +0000 (14:46 +0000)]
a11y: Skip atspi.Cache signals for hidden elements

If the accessible object is hidden, we can skip the emission of the
AddAccessible and RemoveAccessible signals on the cache, as those
objects won't be visible in the accessibility tree.

5 years agoa11y: Get the accessible role once
Emmanuele Bassi [Thu, 19 Nov 2020 14:27:30 +0000 (14:27 +0000)]
a11y: Get the accessible role once

Simplify getting the accessible role when checking if an accessible
implementation should present itself; this avoids going through
GtkAccessible twice to get the same data.

5 years agoa11y: Remove weak ref from atspi.Cache
Emmanuele Bassi [Thu, 19 Nov 2020 14:25:35 +0000 (14:25 +0000)]
a11y: Remove weak ref from atspi.Cache

The GtkAtSpiContext is responsible for removing itself from the root,
which will remove itself from the cache. Any code path that leads to the
GtkAtSpiContext instance being collected passes through the
unrealization phase, which will also unregister the context from the
accessibility bus and from the cache.

5 years agoa11y: Add a fallback for the root base path
Emmanuele Bassi [Thu, 19 Nov 2020 14:24:47 +0000 (14:24 +0000)]
a11y: Add a fallback for the root base path

In case g_get_prgname() returns NULL, which seems to be the case for the
GTK tests.

5 years agoa11y: Reuse the generated AT-SPI interface name
Emmanuele Bassi [Thu, 19 Nov 2020 14:24:00 +0000 (14:24 +0000)]
a11y: Reuse the generated AT-SPI interface name

We already have the name available.

5 years agoa11y: Use the appropriate GVariant for cache signals
Emmanuele Bassi [Thu, 19 Nov 2020 12:14:55 +0000 (12:14 +0000)]
a11y: Use the appropriate GVariant for cache signals

We need to wrap the argument for AddAccessible and RemoveAccessible into
a tuple, as that's what GDBus expects.

5 years agoAdwaita: revert edge-to-edge menuitems
Jakub Steiner [Tue, 17 Nov 2020 00:07:24 +0000 (01:07 +0100)]
Adwaita: revert edge-to-edge menuitems

- use the old Industrial style menuitems to make the design feel purposeful
- adjust corners to have compatible border-radii of child elements
- include sidebars and navigation sidebars to look consistent
  (plus the assistant sidebar)

Implements https://gitlab.gnome.org/GNOME/gtk/-/issues/3366

5 years agogl: add some debugging information to DEBUG_OPS
Christian Hergert [Thu, 19 Nov 2020 01:02:27 +0000 (17:02 -0800)]
gl: add some debugging information to DEBUG_OPS

5 years agolpr: fix cast warning
Christian Hergert [Thu, 19 Nov 2020 04:06:38 +0000 (20:06 -0800)]
lpr: fix cast warning

5 years agomacos: fix various compiler warnings
Christian Hergert [Thu, 19 Nov 2020 03:56:51 +0000 (19:56 -0800)]
macos: fix various compiler warnings

5 years agogl: use glFramebufferTexture2D to set framebuffer texture
Christian Hergert [Wed, 18 Nov 2020 04:11:18 +0000 (20:11 -0800)]
gl: use glFramebufferTexture2D to set framebuffer texture

When mapping a texture to the framebuffer, we can use the 2D
form instead of the cube mapping form.

5 years agogtk-demo: Rename some demos
Matthias Clasen [Wed, 18 Nov 2020 23:35:56 +0000 (18:35 -0500)]
gtk-demo: Rename some demos

This is just to make it easier for myself to
find the right sources.

5 years agodocs: Update GtkSensitivityType docs
Matthias Clasen [Wed, 18 Nov 2020 23:18:31 +0000 (18:18 -0500)]
docs: Update GtkSensitivityType docs

Don't talk about steppers here, since we are only using
this type for combobox buttons nowadays.

5 years agoscrollbar: Don't talk about steppers
Matthias Clasen [Wed, 18 Nov 2020 22:27:13 +0000 (17:27 -0500)]
scrollbar: Don't talk about steppers

There steppers were lost on the way from GtkRange
to GtkScrollbar, so don't talk about them in the docs.

5 years agogtk-demo: Add more keywords
Matthias Clasen [Wed, 18 Nov 2020 15:48:01 +0000 (10:48 -0500)]
gtk-demo: Add more keywords

Add GtkShortcutController as a keyword to some demos that
show its use.

5 years agoMerge branch 'wayland-minimize' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 14:23:56 +0000 (14:23 +0000)]
Merge branch 'wayland-minimize' into 'master'

wayland: Implement minimization

Closes #2688

See merge request GNOME/gtk!2861

5 years agoMerge branch 'constraint-editor-work' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 12:19:07 +0000 (12:19 +0000)]
Merge branch 'constraint-editor-work' into 'master'

Constraint editor work

See merge request GNOME/gtk!2863

5 years agoconstraint-editor: Fix creating constant constraints
Matthias Clasen [Wed, 18 Nov 2020 04:15:51 +0000 (23:15 -0500)]
constraint-editor: Fix creating constant constraints

We were not making the button sensitive in the case
of a constant constraint, and we were not properly
creating constant constraints either.

5 years agoconstraint-editor: Fix saving of constraints
Matthias Clasen [Wed, 18 Nov 2020 04:14:29 +0000 (23:14 -0500)]
constraint-editor: Fix saving of constraints

g_file_replace_contents take a gsize, so passing -1
for string length does not work here.

5 years agoconstraintlayout: Fix parsing of constant constraints
Matthias Clasen [Wed, 18 Nov 2020 04:11:16 +0000 (23:11 -0500)]
constraintlayout: Fix parsing of constant constraints

We were inadvertently turning constant constraints into
constraints against super, due to confusion between target
and source attribute.

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 03:04:01 +0000 (03:04 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

macos: fix rendering artifacts with hover transitions

See merge request GNOME/gtk!2862

5 years agoconstraint-editor: Improve display of constraints
Matthias Clasen [Wed, 18 Nov 2020 02:52:15 +0000 (21:52 -0500)]
constraint-editor: Improve display of constraints

No need to go for ALGOL60 style operators when we
have Unicode.

5 years agomacos: fix rendering artifacts with hover transitions
Christian Hergert [Wed, 18 Nov 2020 02:20:55 +0000 (18:20 -0800)]
macos: fix rendering artifacts with hover transitions

Using an image surface seems to fix some rendering artifacts when
performing cross-fade CSS transitions.

5 years agowayland: Implement minimization
Matthias Clasen [Wed, 18 Nov 2020 00:57:56 +0000 (19:57 -0500)]
wayland: Implement minimization

Use the set_minimized method of the xdg_toplevel
interface to implement minimization as well as possible.
It is not possible, since there is no corresponding
state that we could use to update our surface state,
but in practice, it works well enough.

Fixes: #2688
5 years agoMerge branch 'wip/carlosg/for-master' into 'master'
Matthias Clasen [Wed, 18 Nov 2020 00:13:17 +0000 (00:13 +0000)]
Merge branch 'wip/carlosg/for-master' into 'master'

gdk/wayland: Update to gtk_shell1 version 3

See merge request GNOME/gtk!2860

5 years agogdk/wayland: Update to gtk_shell1 version 3
Carlos Garnacho [Tue, 17 Nov 2020 23:38:15 +0000 (00:38 +0100)]
gdk/wayland: Update to gtk_shell1 version 3

Bring in line with gtk3, in terms of startup notification and
activation support.

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 22:49:05 +0000 (22:49 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

node-editor: fix length of text during save

See merge request GNOME/gtk!2859

5 years agoMerge branch 'fix-doc-packtype' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 22:46:43 +0000 (22:46 +0000)]
Merge branch 'fix-doc-packtype' into 'master'

doc: Adapt GtkPackType documentation to GTK4 changes

See merge request GNOME/gtk!2858

5 years agonode-editor: fix length of text during save
Christian Hergert [Tue, 17 Nov 2020 22:34:11 +0000 (14:34 -0800)]
node-editor: fix length of text during save

The length parameter for g_file_replace_contents() is a gsize, so -1 is
unsuitable here. Just use strlen() directly.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 19:25:05 +0000 (19:25 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

Closes #3278

See merge request GNOME/gtk!2856

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 19:24:47 +0000 (19:24 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

inspector: handle differences in DPI between backends

See merge request GNOME/gtk!2857

5 years agodoc: Adapt GtkPackType documentation to GTK4 changes
vanadiae [Tue, 17 Nov 2020 19:14:51 +0000 (20:14 +0100)]
doc: Adapt GtkPackType documentation to GTK4 changes

Since GTK4, the functions that used the GtkPackType enumeration,
`gtk_box_pack_{start,end}`, were replaced by `gtk_box_{append,prepend}`,
hence this enumeration isn't used anymore by any function within the
GtkBox type, and the child packing properties were also removed for GTK4.
So this commit adapts the documentation accordingly.

5 years agoMerge branch 'wip/otte/for-master' into 'master'
Benjamin Otte [Tue, 17 Nov 2020 19:08:01 +0000 (19:08 +0000)]
Merge branch 'wip/otte/for-master' into 'master'

Wip/otte/for master

See merge request GNOME/gtk!2855

5 years agoinspector: handle differences in DPI between backends
Christian Hergert [Tue, 17 Nov 2020 18:45:25 +0000 (10:45 -0800)]
inspector: handle differences in DPI between backends

This fixes an issue on macOS where the text gets much larger once opening
the inspector.

5 years agoinspector: Limit the width of readonly properties
Matthias Clasen [Tue, 17 Nov 2020 18:33:59 +0000 (13:33 -0500)]
inspector: Limit the width of readonly properties

For readonly properties, we show the serialized value
in a label. If we don't take precautions, this can cause
our window to grow extremely wide, and break things.
So, ellipsize things at a reasonable size.

Fixes: #3278
5 years agosnapshot: Add cleanup function to snapshot state
Benjamin Otte [Wed, 11 Nov 2020 00:34:37 +0000 (01:34 +0100)]
snapshot: Add cleanup function to snapshot state

Otherwise we're leaking data in error cases.

5 years agorendernode: Rename all gsk_render_node_peek_*() functions
Benjamin Otte [Mon, 16 Nov 2020 23:59:36 +0000 (00:59 +0100)]
rendernode: Rename all gsk_render_node_peek_*() functions

Those are getters, they should be gsk_render_node_get_*() functions.

5 years agotests: Fix for new tranfer behavior of constructors
Benjamin Otte [Sun, 8 Nov 2020 14:42:11 +0000 (15:42 +0100)]
tests: Fix for new tranfer behavior of constructors

We were still unreffing a listmodel where the reference wasn't ours
anymore.

5 years agotestsuite: Make defaultvalue test always get the property
Benjamin Otte [Tue, 17 Nov 2020 18:03:18 +0000 (19:03 +0100)]
testsuite: Make defaultvalue test always get the property

Make the test not skip properties completely, just skip checking the
property.

This caught the last 2 commits.

5 years agotextbuffer: Remove unused properties
Benjamin Otte [Tue, 17 Nov 2020 18:02:26 +0000 (19:02 +0100)]
textbuffer: Remove unused properties

The getters and setters were removed in
f53848c3606a9c46bcb3a0e568f36e573bdf84da but the pspecs were forgotten.

5 years agoshortcut: Actions are objects
Benjamin Otte [Tue, 17 Nov 2020 18:01:13 +0000 (19:01 +0100)]
shortcut: Actions are objects

5 years agoMerge branch 'wip/chergert/gdk-macos-for-master' into 'master'
Emmanuele Bassi [Tue, 17 Nov 2020 17:58:14 +0000 (17:58 +0000)]
Merge branch 'wip/chergert/gdk-macos-for-master' into 'master'

macos: bring forward quartz search engine updates

See merge request GNOME/gtk!2854

5 years agoMerge branch 'ebassi/inout-args' into 'master'
Emmanuele Bassi [Tue, 17 Nov 2020 17:40:13 +0000 (17:40 +0000)]
Merge branch 'ebassi/inout-args' into 'master'

Remove pointless inout arguments

See merge request GNOME/gtk!2853

5 years agomacos: bring forward quartz search engine updates
Christian Hergert [Tue, 17 Nov 2020 17:36:01 +0000 (09:36 -0800)]
macos: bring forward quartz search engine updates

These were not cherry picked after GTK branched for 4 development.

5 years agodocs: Add details about plain builds
Matthias Clasen [Tue, 17 Nov 2020 17:21:29 +0000 (12:21 -0500)]
docs: Add details about plain builds

Mention that build type 'plain' puts the responsibility
for debug features into the hands of the builder.

Related: !2831

5 years agoRemove pointless inout arguments
Emmanuele Bassi [Tue, 17 Nov 2020 14:40:52 +0000 (14:40 +0000)]
Remove pointless inout arguments

GtkTreeView.get_tooltip_context() takes an inout X and Y coordinates,
but the "out" side is a side effect: the conversion from widget-relative
to bin window-relative coordinates is not documented, and can be done
using public API, if needed.

GtkIconView.get_tooltip_context() follows the same pattern, and takes
two inout arguments for the coordinates, but it does not change them any
more, after GtkIconView's bin window was dropped in commit 8dc5e13e.

There's really no point in having these `inout` arguments, and while
GtkTreeView and GtkIconView are certainly de-emphasised in GTK4, and we
nudge developers to move to the new list views, we should take advantage
of the API break to remove warts.

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Tue, 17 Nov 2020 16:04:03 +0000 (16:04 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Introspection fixes

Closes #3281

See merge request GNOME/gtk!2852

5 years agoRevert "Adwaita: avoid clipping menu/popover shadow"
Jakub Steiner [Tue, 17 Nov 2020 15:48:49 +0000 (16:48 +0100)]
Revert "Adwaita: avoid clipping menu/popover shadow"

There are big side effects to adding padding around all menus and popovers.

https://gitlab.gnome.org/GNOME/gtk/-/issues/1987#note_963889

This reverts commit d266bd62deaa5752ae79fe055696a9e1e411de2f.

5 years agoAdd type annotations for GtkShortcutAction types
Emmanuele Bassi [Tue, 17 Nov 2020 14:17:26 +0000 (14:17 +0000)]
Add type annotations for GtkShortcutAction types

The constructors and singleton getters need proper annotations for their
return type, given that we return a base type.

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 14:12:23 +0000 (14:12 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2851

5 years agoAnnotate GdkTimeCoord's array field
Emmanuele Bassi [Tue, 17 Nov 2020 14:07:11 +0000 (14:07 +0000)]
Annotate GdkTimeCoord's array field

We need to resolve the array length manually, because g-ir-scanner
cannot turn an enumeration member into a constant size.

5 years agoAnnotate the return type for GtkTreeExpander.get_item()
Emmanuele Bassi [Tue, 17 Nov 2020 13:54:22 +0000 (13:54 +0000)]
Annotate the return type for GtkTreeExpander.get_item()

We use gpointer for C convenience, but the returned value is really a
GObject.

5 years agoAnnotate out argument for gdk_popup_layout_get_offset()
Emmanuele Bassi [Tue, 17 Nov 2020 13:52:15 +0000 (13:52 +0000)]
Annotate out argument for gdk_popup_layout_get_offset()

5 years agoAnnotate the gsk_border_node_peek_widths() return value
Emmanuele Bassi [Tue, 17 Nov 2020 13:48:07 +0000 (13:48 +0000)]
Annotate the gsk_border_node_peek_widths() return value

We return a fixed sized C array of floats.

5 years agowidget-factory: Remove an unused size group
Matthias Clasen [Tue, 17 Nov 2020 12:33:46 +0000 (07:33 -0500)]
widget-factory: Remove an unused size group

This was left behind when 361407201b88c3aae2ee removed
the unused popover that this size group applied to.

5 years agodocs: Fix the links for keybinding signals
Matthias Clasen [Tue, 17 Nov 2020 03:58:53 +0000 (22:58 -0500)]
docs: Fix the links for keybinding signals

GtkBindingSignal does not exist anymore, so link to
GtkSignalAction for an explanation of keybinding signals.

5 years agopopover: Document signals
Matthias Clasen [Tue, 17 Nov 2020 03:46:17 +0000 (22:46 -0500)]
popover: Document signals

5 years agomenubutton: Fix a gtk-doc complaint
Matthias Clasen [Tue, 17 Nov 2020 03:45:59 +0000 (22:45 -0500)]
menubutton: Fix a gtk-doc complaint

5 years agogtk: Fix a doc oversight
Matthias Clasen [Tue, 17 Nov 2020 03:39:13 +0000 (22:39 -0500)]
gtk: Fix a doc oversight

5 years agogsk: Fix a doc oversight
Matthias Clasen [Tue, 17 Nov 2020 03:36:11 +0000 (22:36 -0500)]
gsk: Fix a doc oversight

5 years agoMerge branch 'fix-gi-warning' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 12:31:36 +0000 (12:31 +0000)]
Merge branch 'fix-gi-warning' into 'master'

Fix a warning caused by difference between prototype and definition

See merge request GNOME/gtk!2849

5 years agoMerge branch 'wip/exalm/caption' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 12:22:29 +0000 (12:22 +0000)]
Merge branch 'wip/exalm/caption' into 'master'

widget-factory: Fix caption style class name

See merge request GNOME/gtk!2850

5 years agowidget-factory: Fix caption style class name
Alexander Mikhaylenko [Tue, 17 Nov 2020 08:16:47 +0000 (13:16 +0500)]
widget-factory: Fix caption style class name

It's lowercase.

5 years agoFix a warning caused by difference between prototype and definition
Qiu Wenbo [Tue, 17 Nov 2020 06:47:28 +0000 (14:47 +0800)]
Fix a warning caused by difference between prototype and definition

This commit fix the warning:

../gdk/wayland/gdkdisplay-wayland.c:1079: Warning: GdkWayland: gdk_wayland_display_set_cursor_theme: unknown parameter 'name' in documentation comment, should be 'theme'

5 years agoMerge branch 'gsk-binding-api' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 05:36:15 +0000 (05:36 +0000)]
Merge branch 'gsk-binding-api' into 'master'

gsk: Avoid using gtk css types in public api

Closes #2454

See merge request GNOME/gtk!2848

5 years agogsk: Avoid using gtk css types in public api
Matthias Clasen [Tue, 17 Nov 2020 03:21:27 +0000 (22:21 -0500)]
gsk: Avoid using gtk css types in public api

Using GtkCssSection in public headers here may be
ok from the C perspective, since it all ends up in
the same library anyway. But it causes circular
dependency problems for our gir files that are still
split by namespace.

To avoid this problem, copy the GtkCssLocation struct
struct as GskParseLocation, and pass take two of them
instead of a GtkCssSection in the error callback.

Update all users.

Fixes: #2454
5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 03:11:13 +0000 (03:11 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

popover: Fix submenu navigation

Closes #3301

See merge request GNOME/gtk!2847

5 years agopopover: Fix submenu navigation
Matthias Clasen [Tue, 17 Nov 2020 02:27:15 +0000 (21:27 -0500)]
popover: Fix submenu navigation

In commit 024d832d943b2abf4f0d, we introduced a
cascade-popdown property that makes closing a submenu
propagate up and close its parent menus. This is the
behavior we want when a menuitem in the submen is
activated.

What we overlooked is that we still need to be able to
close a submenu during navigation, before opening another
one. And in this case, propagating the closing is breaking
things. Fix this by adding a private close_submenu api
to GtkPopoverMenu that avoids the propagation.

Fixes: #3301
5 years agobuild: Include GSK types in gtk_test_register_all_type()
Benjamin Otte [Mon, 16 Nov 2020 19:16:53 +0000 (20:16 +0100)]
build: Include GSK types in gtk_test_register_all_type()

5 years agoMerge branch 'matthiasc/for-master' into 'master'
Matthias Clasen [Tue, 17 Nov 2020 01:07:34 +0000 (01:07 +0000)]
Merge branch 'matthiasc/for-master' into 'master'

Matthiasc/for master

See merge request GNOME/gtk!2846

5 years agoMerge branch 'ebassi/for-master' into 'master'
Emmanuele Bassi [Mon, 16 Nov 2020 23:06:55 +0000 (23:06 +0000)]
Merge branch 'ebassi/for-master' into 'master'

Ebassi/for master

See merge request GNOME/gtk!2840

5 years agowidget-factory: Remove an unused popover
Matthias Clasen [Mon, 16 Nov 2020 20:22:12 +0000 (15:22 -0500)]
widget-factory: Remove an unused popover

We are no longer using the hand-rolled variant of that
popover on page 3, so drop it from the ui file.

5 years agoMerge branch 'wip/exalm/button' into 'master'
Matthias Clasen [Mon, 16 Nov 2020 20:16:10 +0000 (20:16 +0000)]
Merge branch 'wip/exalm/button' into 'master'

Allow pressing multiple buttons at once on touch

See merge request GNOME/gtk!2813

5 years agoMerge branch 'wip/jimmac/popover-menu-submenus' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 19:50:08 +0000 (19:50 +0000)]
Merge branch 'wip/jimmac/popover-menu-submenus' into 'master'

Adwaita: fix up submenus again

See merge request GNOME/gtk!2845

5 years agoMerge branch 'wip/chergert/for-master' into 'master'
Matthias Clasen [Mon, 16 Nov 2020 19:20:19 +0000 (19:20 +0000)]
Merge branch 'wip/chergert/for-master' into 'master'

gsk: use glFrameBufferTexture2D and release texture

See merge request GNOME/gtk!2842

5 years agoMerge branch 'wip/jimmac/circular-button-focus' into 'master'
Jakub Steiner [Mon, 16 Nov 2020 18:55:30 +0000 (18:55 +0000)]
Merge branch 'wip/jimmac/circular-button-focus' into 'master'

Adwaita: circular button focus

Closes #3368

See merge request GNOME/gtk!2844

5 years agoAdwaita: fix up submenus again
Jakub Steiner [Mon, 16 Nov 2020 18:48:11 +0000 (19:48 +0100)]
Adwaita: fix up submenus again

- move menubar section under more generic popover.menu
  rather than resort to specificity dir(ltr) hacks

5 years agoAdwaita: circular button focus
Jakub Steiner [Mon, 16 Nov 2020 18:04:07 +0000 (19:04 +0100)]
Adwaita: circular button focus

- have the same focus look like the other items

Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3368